package it.polimi.TravelDreamEAR.ejb.entities;

import java.io.Serializable;
import javax.persistence.*;
import java.util.Date;


/**
 * The persistent class for the pacchetto_cliente database table.
 * 
 */
@Entity
@Table(name="pacchetto_cliente")
@NamedQuery(name="PacchettoCliente.findAll", query="SELECT p FROM PacchettoCliente p")
public class PacchettoCliente implements Serializable {
	private static final long serialVersionUID = 1L;

	@EmbeddedId
	private PacchettoClientePK id;

	@Temporal(TemporalType.DATE)
	private Date data;

	//bi-directional many-to-one association to Cliente
	@ManyToOne
	@JoinColumn(name="CLIENTE")
	private Cliente clienteBean;

	//bi-directional many-to-one association to Pacchetto
	@ManyToOne
	@JoinColumn(name="PACCHETTO")
	private Pacchetto pacchettoBean;

	public PacchettoCliente() {
	}

	public PacchettoClientePK getId() {
		return this.id;
	}

	public void setId(PacchettoClientePK id) {
		this.id = id;
	}

	public Date getData() {
		return this.data;
	}

	public void setData(Date data) {
		this.data = data;
	}

	public Cliente getClienteBean() {
		return this.clienteBean;
	}

	public void setClienteBean(Cliente clienteBean) {
		this.clienteBean = clienteBean;
	}

	public Pacchetto getPacchettoBean() {
		return this.pacchettoBean;
	}

	public void setPacchettoBean(Pacchetto pacchettoBean) {
		this.pacchettoBean = pacchettoBean;
	}

}